package com.kuson.springcloud.service.impl;


import com.kuson.springcloud.dao.PayMentDao;
import com.kuson.springcloud.entities.Payment;
import com.kuson.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentSrviceImpl implements PaymentService {

    @Resource
    private PayMentDao payMentDao;
    @Override
    public int create(Payment payment) {
        return payMentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return payMentDao.getPaymentById(id);
    }
}
